package com.ruoyi.project.hissystem.service.impl;

import com.ruoyi.project.hissystem.domain.HisLogin;
import com.ruoyi.project.hissystem.mapper.HisLoginMapper;
import com.ruoyi.project.hissystem.service.IHisLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : 高向前
 * @date : 9:42 2021/8/19
 */
@Service
public class HisLoginServiceImpl implements IHisLoginService {
    @Autowired
    private  HisLoginMapper hisLoginMapper;
    @Override
    public void insertLogin(HisLogin hisLogin) {
        hisLoginMapper.insertLogin(hisLogin);
    }

    @Override
    public List<HisLogin> selectLoginList(HisLogin hisLogin) {
        return hisLoginMapper.selectLoginList(hisLogin);
    }

    @Override
    public int deleteLoginByIds(Long[] loginIds) {
        return hisLoginMapper.deleteLoginByIds(loginIds);
    }

    @Override
    public void cleanLogin() {
          hisLoginMapper.cleanLogin();
    }
}
